<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML表单</title>
</head>
<body>
    <form action="#">
        <label for="username">用户名：</label>
        <input type="text" placeholder="请输入用户名" id="username" name="username" required>
        <br>
        <br>
        <label for="password">密码：</label>
        <input type="password" placeholder="请输入密码" id="password" name="password" required>
        <br>
        <br>
        <label>性别：</label>
        <input type="radio" name="gender" value="男">男
        <input type="radio" name="gender" value="女">女
        <input type="radio" name="gender" value="其他">其他
        <br>
        <br>
        <label>爱好：</label>
        <input type="checkbox" name="hobby" value="阅读">阅读
        <input type="checkbox" name="hobby" value="旅行">旅行
        <input type="checkbox" name="hobby" value="游泳">游泳
        <input type="checkbox" name="hobby" value="打篮球">打篮球
        <br>
        <br>
        <input type="submit" value="确定提交">
    </form>
</body>
</html>